﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace The_Chronicles_of_Asku.Characters
{
    class Villager : Mob //The bad guy that was converted by the necromacers, you kill him
    {
        public int getDamage(Mob mob)
        {
            int damage = 0;
            damageMin = 1;
            damageMax = 5;
            Random rand = new Random();
            damage = rand.Next(damageMin, damageMax);
            return damage;
        }

        public Villager()
        {
            this.Identifier = "Villager";
            this.gold = 2;
            this.health = 20;
            this.maxHealth = 20;
            this.xp = 10;
            this.damageMax = 5;
            this.damageMin = 1;
            this.maxHeal = 3;
            this.minHeal = 1;
            this.level = 1;
            this.healPoint = 5;
        }

        public static void Initialize(Villager villager)
        {
            villager.Identifier = "Villager";
        }

        public int Heal(Mob mob)
        {
            int heal = 0;
            Random rand = new Random();
            heal = rand.Next(minHeal, maxHeal);
            return heal;
        }

        public void ResetStats(Villager villager)
        {
            villager.health = villager.maxHealth;
        }
    }
}
